<?php
class CodeViewModel extends Model
{
	protected $viewModel = true;

    protected $viewFields = array(

                'Comment'=>array('ID','TABLE'=>'tab','FIELD'=>'ziduan'),

                'Code'=>array('COMMENTID','PCODE','CODE','CODENAME'),

                );

	protected $viewCondition = array(

		'Comment.ID'=>array('eqf','Code.COMMENTID'),

	);
} 
?>